#ifndef Tui_TDropdown_h
#define Tui_TDropdown_h

#include "TBase.h"
#include "TButton.h"


class TDropdown:public TPanel{
public:
    TDropdown();
    ~TDropdown();
    
    virtual bool init();
    
    CREATE_FUNC(TDropdown);
    
    static TDropdown*  create(xml_node<> * pItem);
    
    virtual  void  initWidthConf(xml_node<> * pItem);
    
    virtual void onCreateComplete();
     
    virtual void procTuiEvent(const string&,TPanelItem*);
    TPanel* getSelectPanel();
    TPanel* getOverPanel(); 
    
    void onShow(); 
    void onHide();
    
    virtual void setTarget(CCObject *rec, SEL_MenuHandler selector); 
protected:
    CCObject*       m_pOverListener;
    SEL_MenuHandler    m_pOverfnSelector;
    void onOverSelected(CCObject*);
};
#endif
